#include <stdio.h>
int main() {
	int arr[] = {1, 2, 3, 4, 5};
	int *p_val = arr;
	printf("arr地址是%p\n",arr);
	printf("arr+1的地址是%p\n",arr + 1);
	printf("arr-1的地址是%p\n",arr - 1);
	printf("arr+3的地址是%p\n",arr + 3);
	printf("arr[3]的地址是%p\n",&arr[3]);
	*(p_val + 2) = 10;	//指针可以通过这种方式给元素赋值
	printf("arr[2]是%d\n",arr[2]);
	printf("&arr[3] - arr是%d\n",&arr[3] - arr);
	return 0;
}
